package com.jh.pattern.factory.factorymethod;

import com.jh.pattern.factory.ICourse;

/**
 * @author JH_Wong
 * @projectName newforward
 * @title
 * @package com.jh.pattern.factory.factorymethod
 * @description
 * @date 2019-05-07 21:39
 */
public class FactoryMethodTest {

    public static void main(String[] args) {
        ICourseFactory courseFactory = new JavaCourseFactory();
        ICourse iCourse = courseFactory.course();
        iCourse.study();
    }

}
